package org.smile.xml;

import org.smile.commons.XmlParser;
import org.smile.json.JSONFiledSerializer;

import javax.xml.bind.annotation.*;

@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name = "", propOrder = {})
@XmlRootElement(name = "vo2")
public class Vo2 implements XmlParser.IndexListenSupport {
	@XmlAttribute
	protected String name;
	@XmlValue
	protected String content;
	@XmlAttribute
	protected String address;
	protected int index;
	@Override
	public String toString() {
		return new JSONFiledSerializer().serialize(this);
	}


	@Override
	public void setIndex(int i) {
		this.index=i;
	}
}
